//package cn.yl.pay.service.adapter;
//
//import com.rabbitmq.client.Channel;
//import org.springframework.amqp.core.Message;
//import org.springframework.amqp.rabbit.annotation.RabbitListener;
//import org.springframework.stereotype.Component;
//
//// 2个消费者
//@Component
//public class WorkReceiveListener {
//    @RabbitListener(queues = "pay_order_record_work")
//    public void receiveMessage(String msg, Channel channel, Message message) {
//        // 只包含发送的消息
//        System.out.println("1---接收到消息：" + msg);
//        // channel 通道信息
//        // message 附加的参数信息
//    }
//
//    @RabbitListener(queues = "pay_order_record_work")
//    public void receiveMessage2(Object obj, Channel channel, Message message) {
//        // 包含所有的信息
//        System.out.println("2---接收到消息：" + obj);
//    }
//}
